#
# Be sure to run `pod lib lint ZFPlayer.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
    s.name             = 'TYZFPlayer'
    s.version          = '3.2.13'
    s.summary          = 'A short description of TYZFPlayer.'
    s.homepage         = 'http://j7.hnxmny.com:8088/a/iOS-Libraries/UI-Components/TYZFPlayer'
    s.license          = { :type => 'MIT', :file => 'LICENSE' }
    s.author           = { 'kamael' => 'jskamael@itcom888.com' }
    s.source           = { :git => 'http://j7.hnxmny.com:8088/a/iOS-Libraries/UI-Components/TYZFPlayer', :tag => s.version.to_s }
    s.ios.deployment_target = '7.0'
    s.requires_arc = true
    
    s.default_subspec = 'Core'
    
    s.subspec 'Core' do |core|
        core.source_files = 'TYZFPlayer/Classes/Core/**/*'
        core.public_header_files = 'TYZFPlayer/Classes/Core/**/*.h'
        core.frameworks = 'UIKit', 'MediaPlayer', 'AVFoundation'
    end
    
    s.subspec 'ControlView' do |controlView|
        controlView.source_files = 'TYZFPlayer/Classes/ControlView/**/*.{h,m}'
        controlView.public_header_files = 'TYZFPlayer/Classes/ControlView/**/*.h'
        controlView.resource = 'TYZFPlayer/Classes/ControlView/ZFPlayer.bundle'
        controlView.dependency 'TYZFPlayer/Core'
    end
    
    s.subspec 'AVPlayer' do |avPlayer|
        avPlayer.source_files = 'TYZFPlayer/Classes/AVPlayer/**/*.{h,m}'
        avPlayer.public_header_files = 'TYZFPlayer/Classes/AVPlayer/**/*.h'
        avPlayer.dependency 'TYZFPlayer/Core'
    end
    
    #s.subspec 'ijkplayer' do |ijkplayer|
    #   ijkplayer.source_files = 'TYZFPlayer/Classes/ijkplayer/*.{h,m}'
    #   ijkplayer.public_header_files = 'TYZFPlayer/Classes/ijkplayer/*.h'
    #   ijkplayer.dependency 'TYZFPlayer/Core'
    #   ijkplayer.dependency 'IJKMediaFramework'
    #   ijkplayer.ios.deployment_target = '8.0'
    #end
    
    s.subspec 'KSYMediaPlayer' do |ksyMediaPlayer|
        ksyMediaPlayer.source_files = 'TYZFPlayer/Classes/KSYMediaPlayer/*.{h,m}'
        ksyMediaPlayer.public_header_files = 'TYZFPlayer/Classes/KSYMediaPlayer/*.h'
        ksyMediaPlayer.dependency 'TYZFPlayer/Core'
        #ksyMediaPlayer.dependency 'TYKSYMediaPlayer'
        ksyMediaPlayer.vendored_frameworks = 'TYZFPlayer/Classes/KSYMediaPlayer/*.framework'
        ksyMediaPlayer.library = 'z', 'iconv', 'c++', 'bz2'
        ksyMediaPlayer.pod_target_xcconfig = {
            'ARCHS[sdk=iphonesimulator*]' => '$(ARCHS_STANDARD_64_BIT)'
        }
    end
    
end
